Skip to content

fix(runs): keep a parse during a rename from recreating the old workspace folder - #800

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/rename-parse-folder
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/rename-parse-folder

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #758

What

  • A job parsed while its workspace is renamed or deleted no longer recreates the old folder.
  • The parse cache and the Workspaces page's stored counts make only jobs/ inside a workspace folder still there; once it is gone, they skip the write.
  • The caller still gets the parsed job.

Touches

  • app/nullius/workspace.py: _jobs_folder, _write_cache, store_counts, _load_job
  • Tests: loader and GET /workspaces cases; two race tests check the index write again; two hand-built workspaces get their folder

Verified

  • Before: a rename or delete during the parse left c/jobs/; a strict launch into c was refused.
  • After: no old folder, the name is free.
  • New tests fail on main.
  • Backend and route suites; docs check: 0 findings.

Risk

Agents

  • Claude Code, Opus 5.5
  • Codex, GPT-6.2-Astra (review)

…pace folder

The parse cache and the stored counts make only jobs/ inside a workspace folder still there and skip writing once it is gone; the caller still gets the parsed job.

Closes ThinkFlowLab#758
@harenome
harenome marked this pull request as ready for review December 3, 2026 20:16
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit b1b157a into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/rename-parse-folder branch December 3, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workspaces: a job parsed during a rename recreates the old workspace's folder, which then blocks a launch under that name

1 participant